package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

/**
 * 通用活动condition达成日志
 */
@FieldTypeAnnotation(tableName = "t_l_activity_condition_reach", autoSave = true, dataUpload = true, eventName = "warfare_order")
public class LogCommonActivityReach extends BaseLogEntity {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;

    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "活动任务类型", dataAttribute = "war_ordtype")
    private long conditionType;

    @FieldTypeAnnotation(desc = "活动任务ID", dataAttribute = "war_orderid")
    private long conditionId;

    @FieldTypeAnnotation(desc = "时间")
    private long time;

    public LogCommonActivityReach() {
    }

    public LogCommonActivityReach(int activityId, long userId, long conditionType, long conditionId) {
        this.activityId = activityId;
        this.userId = userId;
        this.conditionType = conditionType;
        this.conditionId = conditionId;
        this.time = System.currentTimeMillis();
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getConditionType() {
        return conditionType;
    }

    public void setConditionType(long conditionType) {
        this.conditionType = conditionType;
    }

    public long getConditionId() {
        return conditionId;
    }

    public void setConditionId(long conditionId) {
        this.conditionId = conditionId;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }
}
